
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <%@ include file="/WEB-INF/Comun/style.jsp" %>
        <title>Seleccione un director del Proyecto Fin de Carrera</title>
    </head>
    <body>
    
    <TABLE WIDTH=950 BORDER=0 CELLPADDING=0 CELLSPACING=0 align="center" class="main">
       <%@ include file="/WEB-INF/Comun/cabecera.jsp" %>   
	   <TR>
	      <%@ include file="/WEB-INF/Comun/menuadministrador.jsp" %> 
   

	    <TD COLSPAN=9 valign="top" class="rbg">     
                 <TABLE WIDTH=650>
                 <TR>
 					<TD  class="cabeceraopcion" height="35">
                    <P CLASS="tituloCentral">Seleccione director</P>  </TD>
                 </TR>
                 <TR>
					<TD width=650 valign=top height=200 style="padding: 10px;">
					   <BR>					    
					    <TABLE width="100%" border="0" align="center" cellpadding="0" cellspacing="0">	
					     <TR>	     					    
							  <td align="left"><font size="2" face="Arial, Helvetica, sans-serif"><strong>
								<p align="left">Director:</p></strong></font>
							  </td>
							  <td align="left">
							  	 <spring:nestedPath path="profesor">
								     <form action="" method="post">
								        <td align="left">
								           <form:select path="profesor.dni" >							          
								           	  <c:forEach items="${profesores}" var="director">
    											<form:option value="${director.dni}">${director.nombre} ${director.apellidos} - ${director.departamento.nombre} </form:option>
 											 </c:forEach>								          
								           </form:select>	
								        </td>
								        <td align="center"><input type="submit" value="Asignar" ></td>							  	 	
							         </form>
							     </spring:nestedPath>
							 </td>	  
 						 </TR>					    

					    </TR>
					   </TABLE>
 			        </TD>
				</TR>
            </TABLE>              
          </TD>
   
	  </TR>
	<%@ include file="/WEB-INF/Comun/piepagina.jsp" %>
   </TABLE>      
 </body>
</html>